package com.opensource.excel.core;

import java.util.ArrayList;
import java.util.List;

import cn.hutool.core.collection.CollUtil;

public class XRow {

	private List<XCell> cells;

	public List<XCell> getCells() {
		return cells;
	}

	public void setCells(List<XCell> cells) {
		this.cells = cells;
	}

	public void addCell(XCell xCell) {
		if (CollUtil.isEmpty(cells)) {
			cells = new ArrayList<>();
		}
		cells.add(xCell);
	}
	
	public boolean isValidRow() {
		return CollUtil.isNotEmpty(cells);
	}
	
}
